package com.ylr.config.framework.feign.fallback;

import com.ylr.config.common.dto.mapping.SimpleMappingDto;
import com.ylr.base.common.tool.Result;
import com.ylr.config.framework.feign.YcMappingBaseClient;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * Created by IntelliJ IDEA.
 *
 * @author wyw
 * date: 2023-05-03 16:29:57
 * className: YcMappingClientFallback 键值对映射客户端异常回调类
 * version: 1.0
 * description:
 */
public class YcMappingClientFallback implements YcMappingBaseClient {

    private static final Logger log = LoggerFactory.getLogger(YcMappingClientFallback.class);

    @Override
    public Result<SimpleMappingDto> getMapping(String key) {
        log.warn("config模块 => 获取键值对配置请求失败回调");
        return Result.fail();
    }
}
